package top.tangyh.lamp.care.common;

public enum ExeYaoStatusEnum {

    //未开始
    NOT_START("notStart", "未开始"),
    RUNNING("running", "进行中"),
    END("end", "已结束"),
    COMPLETED("completed", "已完成");

    private String statusCode;

    private String statusName;

    ExeYaoStatusEnum(String statusCode, String statusName) {
        this.statusCode = statusCode;
        this.statusName = statusName;
    }

    ExeYaoStatusEnum() {
    }

    public String getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(String statusCode) {
        this.statusCode = statusCode;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public static ExeYaoStatusEnum forValue(String statusCode) {
        for (ExeYaoStatusEnum value : values()) {
            if (value.statusCode.equals(statusCode)) {
                return value;
            }
        }
        return null;
    }
}
